package com.yugu.util;

public class Constants {
	/** 系统异常头  **/
	public static final String Exception_Head = "SOME ERRORS OCCURED! AS FOLLOWS.";
	/** 操作名称 */
    public static final String OPERATION_NAME = "OPERATION_NAME";
    /** 客户端语言 */
    public static final String USERLANGUAGE = "userLanguage";
    /** 客户端主题 */
    public static final String WEBTHEME = "webTheme";
    /** 当前用户 */
    public static final String CURRENT_USER = "CURRENT_USER";
    /** 当前用户姓名 */
    public static final String CURRENT_USER_NAME = "CURRENT_USER_NAME";
    /** 在线用户数量 */
    public static final String ALLUSER_NUMBER = "ALLUSER_NUMBER";
    /** 登录用户数量 */
    public static final String USER_NUMBER = "USER_NUMBER";
    /** 上次请求地址 */
    public static final String PREREQUEST = "PREREQUEST";
    /** 上次请求时间 */
    public static final String PREREQUEST_TIME = "PREREQUEST_TIME";
    /** 登录地址 */
    public static final String LOGIN_URL = "/login.html";
    /** 非法请求次数 */
    public static final String MALICIOUS_REQUEST_TIMES = "MALICIOUS_REQUEST_TIMES";
    /** 缓存命名空间 */
    public static final String CACHE_NAMESPACE = "suite:";
    public static final String SECKILL_KEY = "seckill_key:";
    /** 所有地区 */
    public static final String LOCATION_KEY = "LOCATION_KEY:";
    /** 小程序首页 */
    public static final String HOME_DETAILS_KEY = "home_details_key:";
    /** 本店有效活动*/
    public static final String ACTIVITY_INFO_KEY = "activity_info:";
    /** 验证码 redis key */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
    /** 验证码有效期（分钟）*/
    public static final Integer CAPTCHA_EXPIRATION = 2;
    /** 注销 */
    public static final String LOGOUT = "Logout";
    /** 登录用户 redis key */
    public static final String LOGIN_TOKEN_KEY = "login_tokens:";
    /** 令牌前缀 */
    public static final String LOGIN_USER_KEY = "login_user_key";    
    /** 令牌前缀 */
    public static final String TOKEN_PREFIX = "Bearer ";
    /** 令牌 */
    /**
     * http请求
     */
    public static final String HTTP = "http://";
    /**
     * https请求
     */
    public static final String HTTPS = "https://";
    public static final String TOKEN = "token";
    /** 登录成功 */
    public static final String LOGIN_SUCCESS = "Success";
    /** 登录失败 */
    public static final String LOGIN_FAIL = "Error";
    /** 通用成功标识 */
    public static final String SUCCESS = "0";
    /** 通用失败标识 */
    public static final String FAIL = "1";
	public static final int WARN_CODE_VALUE = 4001;
    
    /** 日志表状态 */
    public interface JOBSTATE {
        /**
         * 日志表状态，初始状态，插入
         */
        public static final String INIT_STATS = "I";
        /**
         * 日志表状态，成功
         */
        public static final String SUCCESS_STATS = "S";
        /**
         * 日志表状态，失败
         */
        public static final String ERROR_STATS = "E";
        /**
         * 日志表状态，未执行
         */
        public static final String UN_STATS = "N";
        public static final int WARN_CODE_VALUE = 4001;
    }
	
}
